import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/home',
            name: 'Home',
            component: () => import('@/pages/home/index.vue')
        },
        {
            path: '/download',
            name: 'Download',
            component: () => import('@/pages/download/index.vue')
        },
        {
            path: '/contact',
            name: 'Contact',
            component: () => import('@/pages/contact/index.vue')
        },
        {
            path: '/blog',
            name: 'Blog',
            component: () => import('@/pages/blog/index.vue')
        },
        {
            path: '/aboutus',
            name: 'AboutUs',
            component: () => import('@/pages/aboutus/index.vue')
        },
        {
            path: '/products',
            name: 'Products',
            component: () => import('@/pages/products/index.vue')
        },

        {
            path: '/',
            redirect: { name: 'Home' }
        }
    ]
})

export default router